extends Node3D

@export var turret: PackedScene
@export var enemy_path: Path3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta: float) -> void:
#	var new_turret = turret.instantiate()
#	add_child(new_turret)
	
func create_turret(tile_position: Vector3) -> void:
	var new_turret = turret.instantiate()
	add_child(new_turret)
	new_turret.global_position = tile_position
	new_turret.enemy_path = enemy_path
